package client.states;

import java.awt.Graphics;
import java.awt.Image;

import client.IGameState;
import client.GraphicsLoader;
import client.StateContext;

import com.jpemartin.jgt.KeyboardStatus;

public class LoadingScreen implements IGameState {
	private Image backgroundImg;
	
	public LoadingScreen() {
		backgroundImg = GraphicsLoader.loadImage("StudioScreen.png");
	}
	
	@Override
	public void paint(Graphics g, StateContext stateContext, int GameTime) {
		g.drawImage(backgroundImg, 0, 0, null);
		if (GameTime >= 100) {
			stateContext.setState(new TitleScreen());
		}
	}

	@Override
	public void processKeyHit(StateContext stateContext, KeyboardStatus status) {

	}

}
